package com.yunb.controller;

import com.yunb.entity.ConsultContractCardInfo;
import com.yunb.service.CommonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class IndexController {

    @Resource
    CommonService commonService;

    @GetMapping("/boot/index")
    public String index(){
        return "index request success 66666";
    }

    @GetMapping("/boot/mybatis/ass")
    @ResponseBody
    public List<ConsultContractCardInfo> queryAss(){
        System.out.println(commonService.queryContractbyCardId());
        return  commonService.queryContractbyCardId();
    }
}
